package com.boarsoft.boar.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class LibInfo implements Serializable {
	private static final long serialVersionUID = -7965281431793310937L;

	public static final short STATUS_NOUSE = 0;
	public static final short STATUS_INUSE = 1;
	public static final short STATUS_RELEASED = 2;// 已发布，状态处于已发布的库包可以在别的系统中查询出来

	public static final short TYPE_JAR = 0;

	/** 保留ID，以便与DIR对应 */
	protected String id;
	/** projId，用以区分和过滤不同的库包归属 */
	protected String projId;
	/** 库编号 */
	protected String code;
	/** 库名称 */
	protected String name;
	/** 类型 */
	protected short type = TYPE_JAR;
	/** 状态 */
	protected short status = STATUS_INUSE;
	/** 版本 */
	protected String ver;
	/** 库包的打包优先级，数字越大优先级越高 */
	protected short level = 1;
	/** 描述 */
	protected String memo;

	/** 库包与应用的多对多关系 */
	protected Set<AppInfo> apps = new HashSet<AppInfo>();

	public short getLevel() {
		return level;
	}

	public void setLevel(short level) {
		this.level = level;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVer() {
		return ver;
	}

	public void setVer(String ver) {
		this.ver = ver;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public short getType() {
		return type;
	}

	public void setType(short type) {
		this.type = type;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public Set<AppInfo> getApps() {
		return apps;
	}

	public void setApps(Set<AppInfo> apps) {
		this.apps = apps;
	}

	public String getProjId() {
		return projId;
	}

	public void setProjId(String projId) {
		this.projId = projId;
	}
}